<?php

class CMS_User extends Zend_Db_Table_Abstract
{
    protected $_name  = 'users';
    protected $_primary  = 'id';
	
	function getName($id){
		$sel = $this->select()->where("id='".$id."'");
		$res = $this->fetchRow($sel)->toArray();
		return $res["name"];
	}
	
}
?>